package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 健康档案对象 health_profile
 * 
 * @author 王帅
 * @date 2024-11-03
 */
public class HealthProfile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 档案编号 */
    private Long id;

    /** 老人编号 */
    @Excel(name = "老人编号")
    private Long residentId;

    /** 身高（cm） */
    @Excel(name = "身高", readConverterExp = "c=m")
    private Long height;

    /** 体重（kg） */
    @Excel(name = "体重", readConverterExp = "k=g")
    private Long weight;

    /** 血型 */
    @Excel(name = "血型")
    private String bloodType;

    /** 过敏信息 */
    @Excel(name = "过敏信息")
    private String allergyInfo;

    /** 慢性疾病 */
    @Excel(name = "慢性疾病")
    private String chronicDisease;

    /** 上次体检日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次体检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastPhysicalExamDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setResidentId(Long residentId) 
    {
        this.residentId = residentId;
    }

    public Long getResidentId() 
    {
        return residentId;
    }

    public void setHeight(Long height) 
    {
        this.height = height;
    }

    public Long getHeight() 
    {
        return height;
    }

    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }

    public void setBloodType(String bloodType) 
    {
        this.bloodType = bloodType;
    }

    public String getBloodType() 
    {
        return bloodType;
    }

    public void setAllergyInfo(String allergyInfo) 
    {
        this.allergyInfo = allergyInfo;
    }

    public String getAllergyInfo() 
    {
        return allergyInfo;
    }

    public void setChronicDisease(String chronicDisease) 
    {
        this.chronicDisease = chronicDisease;
    }

    public String getChronicDisease() 
    {
        return chronicDisease;
    }

    public void setLastPhysicalExamDate(Date lastPhysicalExamDate) 
    {
        this.lastPhysicalExamDate = lastPhysicalExamDate;
    }

    public Date getLastPhysicalExamDate() 
    {
        return lastPhysicalExamDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("residentId", getResidentId())
            .append("height", getHeight())
            .append("weight", getWeight())
            .append("bloodType", getBloodType())
            .append("allergyInfo", getAllergyInfo())
            .append("chronicDisease", getChronicDisease())
            .append("lastPhysicalExamDate", getLastPhysicalExamDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
